package com.chen.mapper;

import com.chen.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {

    //获取全部
    List<Employee> getAll();

    //根据id获取员工信息
    Employee getById(@Param("eId") Integer id);

    //根据id删除员工
    int deleteEmp(@Param("eId") Integer id);

    //添加员工
    int addEmp(Employee employee);

    //修改员工
    int updateEmp(Employee employee);
}
